#ifndef __TRANSACTION_H
#define __TRANSACTION_H

#include <iostream>
using namespace std;

#include "Date.h"

class Transaction
{
	public:
		enum eTransactionType {Withdrawal, Deposite};
		static const char*  TransactionType[];	
							Transaction(double transferMoney, eTransactionType typeOfTransacion, const Date& date);
				double		getTransferedMoney();
				eTransactionType	getTransactionType();
		friend	ostream&	operator<<(ostream& os, const Transaction& t);
				bool		operator==(const Transaction& other)			const;
							~Transaction();

	private:
				double				transferedMoney;
				eTransactionType	typeOfTransacion;
		const	Date				date;
		
				Transaction(const Transaction& transaction);
		void	operator=(const Transaction& other);
};

#endif